package middle.ground.core.consts;

/**
 * @ClassName TaskType
 * @author jrl
 * @Date 2022/5/22 16:15
 */
public enum RuleType {

	/**
	 * 唯一性校验
	 */
	UNI(1,"唯一性校验"),
	/**
	 * 必填性校验
	 */
	REQUIRE(2,"必填性校验"),

	/**
	 * 长度准确性校验
	 */
	LENGTH(3,"长度准确性校验"),

	/**
	 * 字典一致性校验
	 */
	DIC(4,"字典一致性校验"),

	/**
	 * 关联一致性校验
	 */
	REL(5,"关联一致性校验"),

	/**
	 * 类型一致性校验
	 */
	TYPE(6,"类型一致性校验"),

	/**
	 * 名称一致性校验
	 */
	NAME(7,"名称一致性校验");

	private Integer code;
	private String name;

	RuleType(Integer code, String name) {
		this.code = code;
		this.name = name;
	}

	public Integer getCode() {
		return code;
	}

	public String getName() {
		return name;
	}
}
